import React,{Component} from 'react'
import {Link} from 'react-router-dom'
class Inbox extends Component{
	constructor(){
		super();
		this.state = {
			myName : "这里是Inbox页面"
		}
	}
	componentWillMount(){

	}
	showName(){
		console.log(this.state);
		  console.log(this.props.location.query.name);
	}
	render(){
		return (<div>fd
				<ul>
			        <li><Link to="/" >首页</Link></li>
							<button onClick={this.showName.bind(this)}>查看</button>
			      </ul>

			</div>
		)
	}
}
export default Inbox
